home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / WebObjects / WebObjectsDoc_HTML / Reuse / ReusableComponentsEx / DictionaryTable.wo / DictionaryTable.wos < prev   
Encoding:
Text File  |  1996-02-29  |  561 b   |  38 lines

  1. ////////////////////////
  2. //  DictionaryTable
  3. //  by Charles Lloyd
  4. ////////////////////////
  5.  
  6.  
  7. ///////////////////
  8. //    User Options
  9. ///////////////////
  10. id dictionary;
  11. id borderSize;
  12. id cellPadding;
  13. id cellSpacing;
  14.  
  15. id currentKey;
  16.  
  17. - awake
  18. {
  19.     dictionary = [[@{
  20.         "Key 1" = "Value 1";
  21.         "Key 2" = "Value 2";
  22.         "Key 3" = "Value 3";
  23.     } mutableCopy] autorelease];
  24.     borderSize = 1;
  25.     cellSpacing = 0;
  26.     cellPadding = 2;
  27. }
  28.  
  29. - allKeys
  30. {
  31.     return [dictionary allKeys];
  32. }
  33.  
  34. - currentValue
  35. {
  36.     return [dictionary objectForKey:currentKey];
  37. }
  38.